package com.feng.code.sevice;

import com.feng.code.pojo.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.feng.code.pojo.vo.UserVO;
import jakarta.servlet.http.HttpServletRequest;

/**
* @author 34689
* @description 针对表【user(用户)】的数据库操作Service
* @createDate 2025-09-16 00:04:29
*/
public interface UserService extends IService<User> {

    // 注册账号
    long userRegister(String userAccount, String userPassword, String checkPassword);

    // 用户登录
    UserVO userLogin(String userAccount, String userPassword, HttpServletRequest request);

    // 修改密码
    boolean userPwdUpdate(String oldPassword, String newPassword, String checkPassword, HttpServletRequest request);

    // 获取当前用户
    User getLoginUser(HttpServletRequest request);

    // 退出登录
    boolean logout(HttpServletRequest request);
}
